﻿using BasecampRestAPI;
using NUnit.Framework;
using TestBasecampRestAPI.TestMoveToDoList;

namespace TestBasecampRestAPI
{
	[TestFixture]
	public class TestPerson
	{
		[Test]
		public void Construct()
		{
			FakeBaseCamp camp = FakeBaseCamp.GetInstance();
			IPerson person = Person.GetInstance(camp, TestBasecamp.GetElementForXml(Properties.Resources.FakePerson));
			Assert.IsNotNull(person);
		}

		[Test]
		public void PathForId()
		{
			Assert.AreEqual("people/1336.xml", Person.PathForId(1336));
		}
	}
}
